#ifndef __DYNAMICARRAY_H_
#define __DYNAMICARRAY_H_

#define ElementType void*//万能数组

struct DynamicArray
{
    ElementType *a;//堆上空间的首地址
    int size;//数组的大小
    int len;//元素长度

};

typedef struct DynamicArray DArray;

void InitDArray(DArray *da);

//
void InsertTail(DArray * da, ElementType element);

//void PrintDArray(DArray * a);
void PrintDArray(DArray * a,void (*f)(ElementType));

#endif


